import React, {useEffect} from 'react';

function Child(props) {
	useEffect(function(){
		console.log("挂载")
	},[])
	useEffect(function(){
		return function(){
			console.log("当组件卸载时执行")
		}
	})
	return (
		<div>child</div>
	);
}

export default Child;